package com.ccrfid.rmc6.lbservice3.pojo.locate;

import com.vividsolutions.jts.geom.Point;

import java.sql.Timestamp;

public class PersonnelTrackInfo {
    private Long personnelId;
    private Integer locatorAddress;
    private Point pos;
    private Integer floorNumber;
    private Timestamp lastLocateTime;
    private Long locationId;
    private String locationName;

    public PersonnelTrackInfo() {
    }

    public PersonnelTrackInfo(Long personnelId, Integer locatorAddress, Point pos, Integer floorNumber) {
        this.personnelId = personnelId;
        this.locatorAddress = locatorAddress;
        this.pos = pos;
        this.floorNumber = floorNumber;
    }

    public PersonnelTrackInfo(Long personnelId, Integer locatorAddress, Point pos, Integer floorNumber, Long time) {
        this.personnelId = personnelId;
        this.locatorAddress = locatorAddress;
        this.pos = pos;
        this.floorNumber = floorNumber;
        this.lastLocateTime = new Timestamp(time);
    }

    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    public Integer getLocatorAddress() {
        return locatorAddress;
    }

    public void setLocatorAddress(Integer locatorAddress) {
        this.locatorAddress = locatorAddress;
    }

    public Point getPos() {
        return pos;
    }

    public void setPos(Point pos) {
        this.pos = pos;
    }

    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    public Timestamp getLastLocateTime() {
        return lastLocateTime;
    }

    public void setLastLocateTime(Timestamp lastLocateTime) {
        this.lastLocateTime = lastLocateTime;
    }

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    @Override
    public String toString() {
        return "PersonnelTrackInfo{" +
                "personnelId=" + personnelId +
                ", locatorAddress=" + locatorAddress +
                ", pos=" + pos +
                ", floorNumber=" + floorNumber +
                ", lastLocateTime=" + lastLocateTime +
                ", locationId=" + locationId +
                ", locationName='" + locationName + '\'' +
                '}';
    }
}
